//
//  DoubleColorProgressBar.h
//  SKPAD
//
//  Created by admin@amonline.com.cn on 15/6/2.
//  Copyright (c) 2015年 amo. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface TwoColorProgressBar : UIControl

//实际值 在范围内的百分比值，用来设置角度
@property (nonatomic, assign) CGFloat value;
//实际刻度值
@property (nonatomic, assign) CGFloat valueAngle;
//最小值，默认是0
@property (nonatomic, assign) CGFloat minimumValue;
//最大值，默认是1
@property (nonatomic, assign) CGFloat maximumValue;

//实际是两个角度的π值
@property (nonatomic, assign) CGFloat startAngle;

@property (nonatomic, assign) CGFloat endAngle;

//背景图片
@property (nonatomic, readonly) UIImageView *backgroundView;
//背景图片
@property (nonatomic, readonly) UIImageView *backgroundView2;

//刻度图层黄
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerGraduationYellow;
//刻度图层绿
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerGraduationGreen;
//实际刻度量图层
@property (nonatomic, readonly, strong) CAShapeLayer * trackLayerRealityYerrow;
//实际刻度量图层
@property (nonatomic, readonly, strong) CAShapeLayer * trackLayerRealityGreen;

//刻度分成的份数
@property (nonatomic, assign) CGFloat totalDuplicate;

@property (nonatomic, strong) NSMutableArray * arrayStartY;
@end
